<template>
  <div>
    <el-card>
      <!--top -->
      <div class="header">
        <!-- first line -->
        <div class="title">
          <div><slot name="title"></slot></div>
          <div><i class="el-icon-info"></i></div>
        </div>
        <!-- second line -->
        <div class="header_num">
          <slot name="header_num"></slot>
        </div>
      </div>
      <!-- main -->
      <div class="content">
        <div class="chart">
          <slot name="chart"></slot>
        </div>
      </div>
      <!-- footer -->
      <div class="footer">
        <span class="footer_text"><slot name="footer_text"></slot> </span>
        <span class="footer_num"><slot name="footer_num"></slot> </span>

        <span class="footer_text"><slot name="footer_text2"></slot> </span>
        <span class="footer_num"><slot name="footer_num2"></slot> </span>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.header {
  .title {
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: gray;
  }
}
.header_num {
  height: 40px;
  line-height: 40px;
  font-size: 25px;
  font-weight: 900;
}

// chart
.chart {
  width: 100%;
  height: 50px;
}

.footer {
  height: 20px;
  line-height: 20px;
  padding-top: 8px;
  border-top: 1px rgba(226, 226, 226, 0.689) solid;
}
.footer {
  span {
    margin-right: 5px;
  }
}
</style>